package com.tungse.study.threadpool;

/**
 * @author Tungse
 */
public class DiscardRejectHandle implements RejectHandle {


    @Override
    public void reject(Runnable task, MyThreadPool threadPool) {
        threadPool.runnableQueue.poll();
        threadPool.execute(task);
    }
}
